//调用接口配置文件
import { request } from 'config/request'


export async function getLifeService(param) {
    return request({
        url: 'admin/lifeservice/detail/' + param.id,
        method: 'GET',
        headers:{
            "Content-type":"application/json",
        }
    });
};

export async function createLifeService(params) {
    return request({
        url: 'admin/lifeservice/create',
        method: 'POST',
        data: params
    });
};
export async function updateLifeService(params) {
    return request({
        url: 'admin/lifeservice/update',
        method: 'POST',
        data: params
    });
};

export async function getCategoryList() {
    return request({
        url: 'admin/lifeservice/category/all',
        method: 'GET',
    });
};